package lab02.test20;

import java.util.Scanner;

/**
 * Created by ASUS on 2017/10/29.
 */
public class Test {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String i=sc.nextLine();
        char tmp;
        int t;
        for(t=0;t<i.length();t++) {
            tmp = i.charAt(t);
            if(tmp>='0'&&tmp<='9')
                System.out.print(""+tmp);
            else
                System.out.print("");
        }
    }
}
